package Test26;

//成员内部类
//如何获取外部类里面的成员变量

public class Test03 {
    public static void main(String[] args) {

        //创建内部类的对象
        Outer03.Inter oi = new Outer03().new Inter();
        oi.show();
    }
}

class Outer03 {
    private int a = 10;

    class Inter {
        private int a = 20;

        public void show() {
            int a = 30;
            //Outer03.this表示获取了外部类对象的地址值
            System.out.println(Outer03.this.a);//10
            System.out.println(this.a);//20
            System.out.println(a);//30
        }
    }
}
